<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/common.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/print.css">
	</head>

	<body>
		<div class="div_print_info_portait">
			<h1 align="center">绵阳市高水农副产品批发有限公司配送中心</h1>
			<h1 align="center">库房维修单据</h1>
			<form id="ff" method="post" style="width:95%;">
				<table cellspacing="4" style="margin-top: 10px;margin-left: 0px;margin-bottom: 10px;">
					<tr>
						<th>单据编号</th>
						<td></td>
						<td>
							<input type="text" name="ORDER_NO" class="print_text_style" />
						</td>
					</tr>
				</table>
				<table class="altrowstable printtable" style="text-align: left;">
					<tr>
						<th width="15%">库房编号</th>
						<td width="35%">
							<input style="width: 100%;" type="text" name="STOREHOUSE_ID" class="print_text_style" />
						</td>
						<th width="15%">库房名称</th>
						<td width="35%">
							<input style="width: 100%" type="text" name="STOREHOUSE_NAME" class="print_text_style" />
						</td>
					</tr>
					<tr>
						<th>库房负责人</th>
						<td>
							<input style="width:100%;" type="text" name="DUTYMAN" class="print_text_style" />
						</td>
						<th>维修时间</th>
						<td>
							<input style="width: 100%;" type="text" name="REPAIR_DATE" class="print_text_style" />
						</td>
					</tr>
				</table>
				<table id="OrderInforTable" class="altrowstable printtable" style="margin-top: 0px;">
					<tr>
						<th>
							<div name="REPAIR_TYPE">维修类型</div>
						</th>
						<th>
							<div name="CONTENT">维修说明</div>
						</th>
						<th>
							<div name="PRICE">维修金额</div>
						</th>
						<th>
							<div name="REPAIR_MAN">维修人员</div>
						</th>
					</tr>
				</table>
				<table class="altrowstable printtable" style="margin-top: 0px;">
					<tr>
						<th width='36%'> 维修金额合计（小写） </th>
						<td width='64%'> <input class="print_text_style" id="sumxx"> </input>
						</td>
					</tr>
					<tr>
						<th> 维修金额合计（大写） </th>
						<td class="dx"> <input class="print_text_style" id="sumdx"> </input>
						</td>
					</tr>
				</table>
				<div>
					<div style="float: left;margin-left: 10px;"> 负责人： <span> </span></div>
					<div style="position: absolute;left:500px;"> <span> </span></div>
				</div>
			</form>
		</div>
	</body>
	<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
	<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../../JS/common.js"></script>
	<script type="text/javascript" src="../../../JS/SHA-1.js"></script>
	<script type="text/javascript" src="../../../JS/finance.js"></script>
	<script type="text/javascript">
		var id = getID();
		$(document).ready(function(){
		loadRemote();
		});
		function loadRemote() {
			$('#ff').form('load', RemoteLinkAddress + '/frozen/repairorder/findbyid.do?ID=' + id);
			$.ajax({
				type: "get",
				url: RemoteLinkAddress + '/frozen/repairorder/findbyid.do?ID=' + id,
				dataType: "json",
				success: function(result) {
					var newTd = new Array();
					var _data = result.rows;
					for(var i = 0; i < _data.length; i++) {
						var newTr = OrderInforTable.insertRow();
						newTd[0] = newTr.insertCell()
						if(_data[i].REPAIR_TYPE != undefined)
							newTd[0].innerText = _data[i].REPAIR_TYPE;
							
						newTd[1] = newTr.insertCell()
						if(_data[i].CONTENT != undefined)
							newTd[1].innerText = _data[i].CONTENT;

						newTd[2] = newTr.insertCell();
						if(_data[i].PRICE != undefined)
							newTd[2].innerText = _data[i].PRICE;

						newTd[3] = newTr.insertCell();
						if(_data[i].REPAIR_MAN != undefined)
							newTd[3].innerText = _data[i].REPAIR_MAN;
					}
					$("#sumxx").val(result.AMOUNT);
					$("#sumdx").val(changeMoneyToChinese(result.AMOUNT));
				}
			});
		} /*将服务器上的内容，根据对应的ID传入id为‘ff’的相应的input标记中*/
	</script>

</html>